using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;
using CommonTools;

namespace shop.Model
{

	
	public class JRight : IFastTree,IJRight
	{
		[Column(IsIdentity =true)]
		public string NodeText => this.Code + " " + this.Name;

		/// <summary> 代码 </summary>
		[Column(IsPrimary = true, IsIdentity = true)]
		public int ID { get; set; }

		/// <summary> 权限代码 </summary>
		[VarChar(10)]
		public string Code { get; set; }

		/// <summary> 代码级别 </summary>
		public byte CodeLevel { get; set; }

		/// <summary> 模块名 </summary>
		[VarChar(30)]
		public string Module { get; set; }

		/// <summary> 权限说明本国语言 </summary>
		[Column(StringLength = 60, IsNullable = false)]
		public string Name { get; set; }



        /// <summary> 权限说明中文 </summary>
        //[Column(Name = "Name_cn", StringLength = 60, IsNullable = false)]
		[Column(IsIgnore =true)]
        public string Name_cn { get; set; }

        /// <summary> 权限说明英语 </summary>
        //[Column(Name = "Name_en", DbType = "varchar(60)", IsNullable = false)]
		[Column(IsIgnore =true)]
        public string Name_en { get; set; }

    }

}
